Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with bjornstar/blob-polyfill #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jscinoz
Copy link

@jscinoz jscinoz commented Nov 13, 2017

Add compatibility with the fake Blob objects created by blob-polyfill to allow the use of readable-blob-stream with NodeJS.

This is mainly useful for headless unit testing of browser code that uses Blob/FileReader.

@michaelkantor
Copy link

I'm investigating this use case as well. Scenario is having a JS library designed for web, but which has components that should be able to run on NodeJS.

@jimmywarting
Copy link

Using the FileReader is now discouraged, it's better to use the new promise based read methods on the blob itself .arrayBuffer(), .text(), .stream() instead...

it's a unified way to read any blob instances/polyfill without knowing any internal (private data/buffer)
NodeJs have buffer.Blob built in now, but they are not going to implement any FileReader for it - since there is no need for it.

Almost think this repo/package should be deprecated/archived...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants